local DrawControl=class(zui.DrawControl)

function DrawControl:ctor()

end

function DrawControl:doInit()

end

function DrawControl:doDeinit()

end

function DrawControl:doEvent()

end

function DrawControl:estimateSize(size)
	return {w=size.w,h=100}
end

function DrawControl:doPaint(render,rcPaint)
	local pos=self:getPos()
	render:setDrawColor("white")
	render:fillRect(pos.left,pos.top,pos.right-pos.left,pos.bottom-pos.top)
	render:drawText("测试😃你好😘方法方法432fgffdg😁",pos.left,pos.top,0xffff0000)
	
	render:drawEmoji(0x1F471,{left=pos.left,top=pos.top+20,right=pos.left + 15,bottom= pos.top + 35})
	
	render:drawBezier(0xffff0000,{
		{pos.left+1,pos.top+2},
		{(pos.left+pos.right)/2,pos.top},
		{pos.right,pos.bottom},
	},3)
end

return DrawControl